#ifndef CUSTEM_MSG_HPP
#define CUSTEM_MSG_HPP

#include "rclcpp/rclcpp.hpp"
#include "std_msgs/msg/string.h"
#include "tin/msg/tin.hpp"
using namespace std;
class custem_msg:public rclcpp::Node
{
public:
    custem_msg(string name);
private:
    void timer_callback();
    void sub_callback(tin::msg::Tin msg);
private:
    rclcpp::Subscription<tin::msg::Tin>::SharedPtr sub;
    rclcpp::Publisher<tin::msg::Tin>::SharedPtr pub;
    rclcpp::TimerBase::SharedPtr timer_;
};

#endif // CUSTEM_MSG_HPP
